namespace Excerise;

public class Employee
{
    //属性
    public string Name { get; set; }
    public int EmployeeID { get; set; }
    public DateTime HireDate { get; set; }

    //构造函数
    public Employee(string name, int employeeID)
    {
        Name = name;
        EmployeeID = employeeID;
        HireDate = DateTime.Now;  //入职日期默认为当前日期
    }
}